<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class DomSql</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> DomSql</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
                <p class="implements">
            Implements interfaces:
            <ul>
                <li><a href="../DomMonitor/DomMonitorable.html">DomMonitorable</a></li>            </ul>
        </p>
        		<!-- ========== Info from phpDoc block ========= -->
		<p class="notes">
			Located in <a class="field" href="_libs---DomSql---DomSql.class.php.html">/libs/DomSql/DomSql.class.php</a> (line <span class="field"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a26">26</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>


	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#DEFAULT_ALIAS" title="details" class="const-name">DEFAULT_ALIAS</a> = 					<span class="var-type"> 'default'</span>

				</div>
							</div>
		</div>
	</div>


	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
									<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																			
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">void</span>
										<a href="#affectedRows" title="details" class="method-name">affectedRows</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">void</span>
										<a href="#connect" title="details" class="method-name">connect</a>
											(<span class="var-type">String</span>&nbsp;<span class="var-name">$host</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$username</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$password</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>], <span class="var-type">String</span>&nbsp;<span class="var-name">$database</span>)
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">Boolean</span>
										<a href="#connected" title="details" class="method-name">connected</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">Boolean</span>
										<a href="#disconnect" title="details" class="method-name">disconnect</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">Resource</span>
										<a href="#getConnection" title="details" class="method-name">getConnection</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">void</span>
										<a href="#init" title="details" class="method-name">init</a>
											(<span class="var-type">String</span>&nbsp;<span class="var-name">$host</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$username</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$password</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$database</span> = <span class="var-default">NULL</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result"><a href="../DomAr/Iterator/DomSqlKeyListIterator.html">DomSqlKeyListIterator</a></span>
										<a href="#keyListQuery" title="details" class="method-name">keyListQuery</a>
											(<span class="var-type">String</span>&nbsp;<span class="var-name">$query</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$key</span> = <span class="var-default">'id'</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">NULL</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">Int</span>
										<a href="#lastInsertId" title="details" class="method-name">lastInsertId</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result"><a href="../DomSql/DomSqlQuery.html">DomSqlQuery</a></span>
										<a href="#query" title="details" class="method-name">query</a>
											([<span class="var-type">String</span>&nbsp;<span class="var-name">$query</span> = <span class="var-default">NULL</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">unknown_type</span>
										<a href="#realConnect" title="details" class="method-name">realConnect</a>
											(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$alias</span>)
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">Boolean</span>
										<a href="#selectDatabase" title="details" class="method-name">selectDatabase</a>
											(<span class="var-type">String</span>&nbsp;<span class="var-name">$database</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result">Array</span>
										<a href="#selectOneQuery" title="details" class="method-name">selectOneQuery</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$query</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">NULL</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/StaticMethod.png" alt=" "/>
					static 						<span class="method-result"><a href="../DomSql/DomSqlIterator.html">DomSqlIterator</a></span>
										<a href="#selectQuery" title="details" class="method-name">selectQuery</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$query</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
									</div>
																											
				<div class="method-definition">
					<img src="../media/images/Destructor.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#__destruct" title="details" class="method-name">__destruct</a>
										()
									</div>
																																																																																																																							
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setIteratorClass" title="details" class="method-name">setIteratorClass</a>
											(<span class="var-type">String</span>&nbsp;<span class="var-name">$className</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodaffectedRows" id="affectedRows"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static affectedRows</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a217">217</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns number of affected rows by last update or insert query.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">void</span>
		<span class="method-name">
			affectedRows
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodconnect" id="connect"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static connect</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a97">97</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Makes new connection to SQL server. Does not really connect, real connection will be made if first query is sent to database  If you want it to connect right away call realConnect after it.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">void</span>
		<span class="method-name">
			connect
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$host</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$username</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$password</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>], <span class="var-type">String</span>&nbsp;<span class="var-name">$database</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$host</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$username</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$password</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$database</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodconnected" id="connected"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static connected</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a144">144</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">if connection exists</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">Boolean</span>
		<span class="method-name">
			connected
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddisconnect" id="disconnect"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static disconnect</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a159">159</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Disconnects connection. If no arguments given then all connections will be disconnected</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">Boolean</span>
		<span class="method-name">
			disconnect
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetConnection" id="getConnection"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static getConnection</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a151">151</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">Resource</span>
		<span class="method-name">
			getConnection
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodinit" id="init"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static init</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a77">77</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Initializes DomSql and connects to database.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">void</span>
		<span class="method-name">
			init
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$host</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$username</span>, <span class="var-type">String</span>&nbsp;<span class="var-name">$password</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$database</span> = <span class="var-default">NULL</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$host</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$username</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$password</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$database</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodkeyListQuery" id="keyListQuery"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static keyListQuery</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a244">244</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="description"><p>// sample 2  foreach( DomSql::keyListQuery('SELECT id,name,age FROM users','id',) as $id =&gt; $row ) {  	echo $id.' - '.$row['name'].'('.$row['age].')';  }  &lt;/code&gt;</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result"><a href="../DomAr/Iterator/DomSqlKeyListIterator.html">DomSqlKeyListIterator</a></span>
		<span class="method-name">
			keyListQuery
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$query</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$key</span> = <span class="var-default">'id'</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$value</span> = <span class="var-default">NULL</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$query</span><span class="var-description">: Mysql query</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$key</span><span class="var-description">: This value will be used as array key</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$value</span><span class="var-description">: This value will be used as value. If not added then whole row is set as value.</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodlastInsertId" id="lastInsertId"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static lastInsertId</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a210">210</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> last insert id</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">Int</span>
		<span class="method-name">
			lastInsertId
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodquery" id="query"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static query</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a178">178</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Makes query to database.</p>
	<ul class="tags">
				<li><span class="field">return:</span> or resource if $query is empty</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result"><a href="../DomSql/DomSqlQuery.html">DomSqlQuery</a></span>
		<span class="method-name">
			query
		</span>
					([<span class="var-type">String</span>&nbsp;<span class="var-name">$query</span> = <span class="var-default">NULL</span>], [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$query</span><span class="var-description">: If left as NULL, then new DomSqlQuery object is returned.</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodrealConnect" id="realConnect"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static realConnect</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a106">106</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Connects to database using alias. Parameters must be set using connect method. Connect method sets up connection and this method actually connects.</p>
<p class="description"><p>You should not call this method manualy, it will be called when first query is sent to database using same alias.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">unknown_type</span>
		<span class="method-name">
			realConnect
		</span>
					(<span class="var-type">unknown_type</span>&nbsp;<span class="var-name">$alias</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">unknown_type</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodselectDatabase" id="selectDatabase"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static selectDatabase</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a129">129</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Select database</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">Boolean</span>
		<span class="method-name">
			selectDatabase
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$database</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$database</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodselectOneQuery" id="selectOneQuery"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static selectOneQuery</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a259">259</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Make select query to database that returns only one row</p>
<p class="description"><p><div class="src-code"><ol><li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;sample&nbsp;1.&nbsp;Return&nbsp;one&nbsp;row</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$row&nbsp;</span>=&nbsp;<span class="src-id"><a href="../DomSql/DomSql.html">DomSql</a></span><span class="src-sym">::</span><a href="../DomSql/DomSql.html#methodselectOneQuery">selectOneQuery</a><span class="src-sym">(</span><span class="src-str">'SELECT&nbsp;id,username&nbsp;FROM&nbsp;users&nbsp;WHERE&nbsp;id=1&nbsp;LIMIT&nbsp;1'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;</div></li>
<li><div class="src-line">&nbsp;<span class="src-comm">//&nbsp;sample&nbsp;2.&nbsp;Return&nbsp;only&nbsp;one&nbsp;value</span></div></li>
<li><div class="src-line">&nbsp;<span class="src-var">$total&nbsp;</span>=&nbsp;<span class="src-id"><a href="../DomSql/DomSql.html">DomSql</a></span><span class="src-sym">::</span><a href="../DomSql/DomSql.html#methodselectOneQuery">selectOneQuery</a><span class="src-sym">(</span><span class="src-str">'SELECT&nbsp;count(*)&nbsp;as&nbsp;n&nbsp;FROM&nbsp;users'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'n'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line">&nbsp;echo&nbsp;<span class="src-str">'There&nbsp;are&nbsp;'</span>.<span class="src-var">$total</span>.'&nbsp;users.</div></li>
</ol></div></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result">Array</span>
		<span class="method-name">
			selectOneQuery
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$query</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$field</span> = <span class="var-default">NULL</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$query</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$field</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="methodselectQuery" id="selectQuery"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/StaticMethod.png" />
		<span class="method-title">static selectQuery</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a224">224</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Make select query to database. Query is not sent to database before DomSqlIterator is rewinded!</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		static <span class="method-result"><a href="../DomSql/DomSqlIterator.html">DomSqlIterator</a></span>
		<span class="method-name">
			selectQuery
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$query</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$alias</span> = <span class="var-default">DomSql::DEFAULT_ALIAS</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$query</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$alias</span>			</li>
				</ul>
		
			
	</div>
<a name="method__destruct" id="__destruct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Destructor.png" />
		<span class="method-title">Destructor __destruct</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a57">57</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Disconnects all connections</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__destruct
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodsetIteratorClass" id="setIteratorClass"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">setIteratorClass</span> (line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a63">63</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setIteratorClass
		</span>
					(<span class="var-type">String</span>&nbsp;<span class="var-name">$className</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$className</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constDEFAULT_ALIAS" id="DEFAULT_ALIAS"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">DEFAULT_ALIAS</span>
			 = <span class="const-default"> 'default'</span>
			(line <span class="line-number"><a href="../__filesource/fsource_DomSql__libsDomSqlDomSql.class.php.html#a28">28</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
</div>
						
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Fri, 24 Sep 2010 21:14:14 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>